package com.artieksi.action;

import com.artieksi.entity.SignBean;
import twitter4j.Paging;
import twitter4j.Status;
import twitter4j.TwitterException;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * User: TTACANSEVER
 */
public class UserTweetsAction extends BaseAction {

    private String username;
    private String sign;
    private List<SignBean> tweets;
    private SignBean userBean;

    public String execute() throws TwitterException, IOException {
        tweets = artiEksiDAO.getUserTweets(username, sign);
        userBean = artiEksiDAO.searchUser(username, sign, "daily");
        return SUCCESS;
    }

    public List<SignBean> getTweets() {
        return tweets;
    }

    public void setTweets(List<SignBean> tweets) {
        this.tweets = tweets;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public SignBean getUserBean() {
        return userBean;
    }

    public void setUserBean(SignBean userBean) {
        this.userBean = userBean;
    }
}
